package com.bk.mapper.empInfo;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.bk.entity.EmployeeInfo;
import com.bk.entity.RoleInfo;
import com.bk.vo.EmployeeRoleVo;


@Component
/**@author czl  获得柜员信息*/
public interface EmployeeInfoMapper {
	
	/**获得柜员信息*/
	public EmployeeInfo getEmployeeInfo(@Param("empId") String EmpId,@Param("password") String password,@Param("authorityId") String authorityId);
	
	/**获取所有的柜员信息*/
	public List<EmployeeInfo> getEmployeeList();

	/**增加柜员信息*/
	public int addEmployeeInfo(@Param("employeeRoleVo") EmployeeRoleVo employeeRoleVo);

	/**修改柜员信息*/
	public int editEmployeeInfo(@Param("employeeRoleVo") EmployeeRoleVo EmployeeRoleVo);

	/**删除柜员信息*/
	public int deleteEmployeeInfoByEmpId(String empId);

	/**根据柜员名模糊查询柜员*/
	public List<EmployeeRoleVo> queryEmpInfoByEmpName(@Param(value="empName")String empName);

	/**获取柜员信息和角色*/
	public List<EmployeeRoleVo> getEmployeeRoleVoList();
	
}
